
export const formData = {
    getItemUrl: 'interface/client/getItemById/',
    updateUrl: 'interface/client/updateAction/',
    createUrl: 'interface/client/createAction/',
    formKey: 'client',
    updateFieldList: [
        { formType: 'Input', showName: '租户', key: 'lessee', width: 6, required: true, roles: ['admin'] },
        { formType: 'Input', showName: '客户端名称', key: 'appname', width: 6 },
        { formType: 'Input', showName: '客户端标识', key: 'clientname', width: 6, roles: ['admin'] },
        { formType: 'Input', showName: '商户号id', key: 'mch_id', width: 6 },
        { formType: 'Input', showName: '商户号key', key: 'mch_key', width: 6, roles: ['admin'] },
        { formType: 'Input', showName: 'APPID', key: 'appid', width: 6 },
        { formType: 'Input', showName: 'APP秘钥', key: 'appsecret', width: 6, roles: ['admin'] },
        { formType: 'Input', showName: '微信异步回调url', key: 'notify_url', width: 6, roles: ['admin'] },
        { formType: 'Input', showName: '微信退款异步回调url', key: 'notify_url_return', width: 6, roles: ['admin'] },
        { formType: 'Input', showName: 'baseUrl地址', key: 'baseUrl', width: 6 },
        { formType: 'Upload', showName: 'LOGO', key: 'logo', width: 6 },
        { formType: 'Upload', showName: '分享封面', key: 'shareCoverUrl', width: 6 },
        { formType: 'Upload', showName: '安卓下载地址', key: 'updateUrlForAndriod', width: 6 },
        { formType: 'JsonStr', showName: 'shoaModal参数设置', key: 'showModalParams', width: 10, rows: 8, roles: ['admin']},
        { formType: 'Switch', showName: '是否审核中', key: 'checking', width: 6, roles: ['admin'] },
    ],
    detailFieldList: [
        { formType: 'Input', showName: '客户端名称', key: 'appname', width: 6 },
        { formType: 'Input', showName: '客户端标识', key: 'clientname', width: 6 },
        { formType: 'Input', showName: '商户号id', key: 'mch_id', width: 6 },
        { formType: 'Input', showName: '商户号key', key: 'mch_key', width: 6, roles: ['admin'] },
        { formType: 'Input', showName: 'APPID', key: 'appid', width: 6 },
        { formType: 'Input', showName: 'APP秘钥', key: 'appsecret', width: 6, roles: ['admin'] },
        { formType: 'Input', showName: '安卓下载地址', key: 'updateUrlForAndriod', width: 6 },
        { formType: 'Input', showName: '微信异步回调url', key: 'notify_url', width: 6, roles: ['admin'] },
        { formType: 'Input', showName: '乐付异步回调url', key: 'notify_url_for_lz', width: 6, roles: ['admin'] },
        { formType: 'Input', showName: '微信退款异步回调url', key: 'notify_url_return', width: 6, roles: ['admin'] },
        { formType: 'Input', showName: 'baseUrl地址', key: 'baseUrl', width: 6 },
        { formType: 'Switch', showName: '是否审核中', key: 'checking', width: 6, roles: ['admin'] },
    ],
    options: {
        status: [
            {value: '1', label: "正常"},
            {value: '2', label: "异常"}
        ],
        checking: [
            {value: 1, label: "是"},
            {value: 0, label: "否"}
        ]
    },
    dicts: {
        status: {
            '1': "正常",
            '2': "异常"
        }
    }
}
